<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/23
 * Time: 16:06
 */
namespace app\home\controller;

use think\Controller;
use think\Request;
use think\Session;

class Base extends Controller {
    // 初始化
    public function _initialize()
    {
        // 验证是否登陆
        $user_info = Session::get('S_USER_INFO');
        if(!$user_info){
            $this->redirect('/home/Login/login');
            exit;
        }
    }

}